/// 礼品卡种类信息
class SysGiftCardTypeEntity {
  /// 主键id
  final int? id;
  /// 卡种类名称
  final String? typeName;
  /// 卡种类图片地址
  final String? iconUrl;
  /// 数据状态（1-有效，0-无效）
  final int? status;

  SysGiftCardTypeEntity({
    this.id,
    this.typeName,
    this.iconUrl,
    this.status,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (id != null) data['id'] = id;
    if (typeName != null) data['typeName'] = typeName;
    if (iconUrl != null) data['iconUrl'] = iconUrl;
    if (status != null) data['status'] = status;
    return data;
  }

  factory SysGiftCardTypeEntity.fromJson(Map<String, dynamic> json) {
    return SysGiftCardTypeEntity(
      id: json['id'],
      typeName: json['typeName'],
      iconUrl: json['iconUrl'],
      status: json['status'],
    );
  }
}